﻿Public Class Form2

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        My.Settings.user = TextBox1.Text
        My.Settings.pass = TextBox2.Text()
        My.Settings.pc = TextBox3.Text
        My.Settings.servizio = TextBox4.Text

        Form1.Label1.Text = My.Settings.servizio


        Me.Close()



    End Sub

    Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        TextBox1.Text = My.Settings.user
        TextBox2.Text = My.Settings.pass
        TextBox3.Text = My.Settings.pc
        TextBox4.Text = My.Settings.servizio

    End Sub
End Class